<% layout("/WEB-INF/view/console/skins/skin_2/layout.html", {}) {
%>
<div class="row">
    <div class="col-md-12">
        <div class="widget-container fluid-height clearfix">
            <div class="widget-content padded clearfix">
                <div class='row'>
                    <div class='col-md-12'>
                        <form name="boDictionary_form" id="boDictionary_form" class='form-inline'>

 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='值'  >值：</label>
 <input  onkeyup='boDictionaryConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='value' name='value' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='描述标题'  >描述标题：</label>
 <input  onkeyup='boDictionaryConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='des' name='des' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='name'  >名称：</label>
 <input  onkeyup='boDictionaryConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='name' name='name' placeholder=''>
 </div>
 
                        </form>
                    </div>
                </div>
                <div class='row'>
                    <div align="center">
                        <button type='button' class='btn btn-default' id='boDictionaryQuerySearch'>查询</button>
                        <button type='button' class='btn btn-default' id='boDictionaryReset'>重置</button>
                    </div>
                </div>
                 <div id="boDictionaryToolbar" class="btn-group">
                              <button type="button" class="btn btn-default" onclick="consoleOpenWindow('boDictionary','${ctxPath}/console/bo_dictionary/add/${code}','新增')">
                                  <i class="glyphicon glyphicon-plus"></i>
                              </button>
                              <button type="button" class="btn btn-default" onclick='boDictionaryConsoleGrid.delete("id","${ctxPath}/console/bo_dictionary/delete");'>
                                  <i class="glyphicon glyphicon-trash"></i>
                              </button>
                 </div>
                     <div class='row'>
                              <div class='col-md-12'>
                                  <table id="boDictionary" data-toggle="table"
                                         data-url="${ctxPath}/console/bo_dictionary/json"
                                         data-pagination="true"
                                         data-query-params="boDictionaryLoadParam"
                                         method="post"
                                         data-side-pagination="server"
                                         data-show-refresh="true"
                                         data-show-toggle="true"
                                         data-pagination-loop="false"
                                         data-show-columns="true"
                                         data-toolbar="#boDictionaryToolbar">
                                      <thead>
                                      <tr>
                                           <th data-checkbox="true"></th>
                                            <th data-field='id' data-visible='false'>ID</th>
                                          <th data-sortable='true' data-field='name'>名称</th>
  <th data-sortable='true' data-field='code'>代码</th>
  <th data-sortable='true' data-field='value'>值</th>
  <th data-sortable='true' data-field='des'>描述标题</th>

  <th data-field='id' data-formatter='boDictionaryTableOperate'>操作</th>
 
                                      </tr>
                                      </thead>
                                  </table>
                              </div>
                     </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
     var boDictionaryConsoleGrid =new consoleGrid({table_id:"boDictionary"});
     boDictionaryConsoleGrid.init();
     function boDictionaryTableOperate(value){
         return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"boDictionary\",\"${ctxPath}/console/bo_dictionary/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
     }
    function boDictionaryLoadParam(params){
        params.query=boDictionaryQueryString();
        return params;
    }
     function boDictionaryQueryString() {
         var objQuery = new Object();
                objQuery.code='${code!""}';
     objQuery.value=$('#value').val()==''?null:$('#value').val(); 
     objQuery.des=$('#des').val()==''?null:$('#des').val(); 
     objQuery.name=$('#name').val()==''?null:$('#name').val(); 
 
         var queryString = JSON.stringify(objQuery);
         return queryString;
     }

    
 </script>
<%} %>
 